package adapter;

import java.util.List;

/**
 * TODO 简单说明
 *
 * @author yangyang
 * @date 2017/8/25 15:03
 * @email kekecany@163.com
 */
public class TwoDirectAdapter implements LogDbOperateApi, LogFileOperateApi {

    private LogFileOperateApi fileLog;

    private LogDbOperateApi dbLog;

    public TwoDirectAdapter(LogFileOperateApi fileLog, LogDbOperateApi dbLog) {
        this.fileLog = fileLog;
        this.dbLog = dbLog;
    }

    @Override
    public void createLog(LogModel logModel) {
        System.out.println("TwoDirectAdapter: LogFileOperate createLog");
    }

    @Override
    public List<LogModel> getAllLog() {
        System.out.println("TwoDirectAdapter: LogFileOperate getAllLog");
        return null;
    }

    @Override
    public void removeLog(LogModel logModel) {
        System.out.println("TwoDirectAdapter: LogFileOperate removeLog");
    }

    @Override
    public void updateLog(LogModel logModel) {
        System.out.println("TwoDirectAdapter: LogFileOperate updateLog");
    }

    @Override
    public List<LogModel> readLogFile() {
        System.out.println("TwoDirectAdapter: LogDbOperate readLogFile");
        return null;
    }

    @Override
    public void writeToLogFile(List<LogModel> logModels) {
        System.out.println("TwoDirectAdapter: LogDbOperate writeToLogFile");
    }
}
